﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpages/Main.master" AutoEventWireup="true"
    CodeFile="SurveyorList.aspx.cs" Inherits="User_Shares_SurveyorList" %>

<%@ Register Src="../../Controls/ContentHolder/Holder1.ascx" TagName="Holder1" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script language="javascript" type="text/javascript">
        function CallPrint(strid) {
            var prtContent = document.getElementById(strid);
            var WinPrint = window.open('', '', 'letf=0,top=0,width=100%,height=100%,toolbar=0,scrollbars=2,status=0');
            WinPrint.document.write(prtContent.innerHTML);
            WinPrint.document.close();
            WinPrint.focus();
            WinPrint.print();
            WinPrint.close();
            //            prtContent.innerHTML = strOldOne;
        }

        $(document).ready(function() {
            $('[id$=GridViewSurveyors]').tablesorter();
        });
    </script>
    <div style="font-family: Tahoma; font-size: 11;" align="center">
        <%--          <uc1:holder1 ID="Holder11" runat="server" Title="لیست نقشه برداران" >
  <ContentTemplate>
        --%>
        <div id="printdiv">
            <asp:Panel ID="Panel1" runat="server" ScrollBars="Auto" Width="100%" ForeColor="Black"
                Direction="RightToLeft" Height="500px" Font-Names="Tahoma" Font-Size="X-Small">
                <asp:GridView ID="GridViewSurveyors" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridViewSurveyors_RowDataBound"
                    ForeColor="#333333" Font-Names="Tahoma" CssClass="showgrid tablesorter" OnPreRender="GridViewSurveyors_PreRender">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="Name" HeaderText="نام/نام شرکت" NullDisplayText="---"
                            ItemStyle-Width="200"></asp:BoundField>
                        <asp:BoundField DataField="Family" HeaderText="نام خانوادگی / نام مدیر عامل" NullDisplayText="---">
                        </asp:BoundField>
                        <asp:BoundField DataField="Address" HeaderText="آدرس" NullDisplayText="---"></asp:BoundField>
                        <asp:BoundField DataField="Tel" HeaderText="تلفن ثابت" NullDisplayText="---"></asp:BoundField>
                        <asp:BoundField DataField="Mobile" HeaderText="تلفن همراه" NullDisplayText="---">
                        </asp:BoundField>
                        <asp:BoundField DataField="UserName" HeaderText="نام کاربری" NullDisplayText="---"
                            Visible="false"></asp:BoundField>
                        <asp:BoundField DataField="Role" HeaderText="عنوان شغلی" NullDisplayText="---" Visible="True">
                        </asp:BoundField>
                        <asp:BoundField HeaderText="kk" NullDisplayText="---" Visible="false"></asp:BoundField>
                        <asp:BoundField HeaderText="شماره ثبت شرکت" NullDisplayText="---"></asp:BoundField>
                        <asp:BoundField HeaderText="تاریخ اعتبار صلاحیت" NullDisplayText="---"></asp:BoundField>
                        <asp:BoundField HeaderText="پست الکترونیکی" NullDisplayText="---"></asp:BoundField>
                        <asp:BoundField HeaderText="وب سایت" NullDisplayText="---"></asp:BoundField>
                        <asp:BoundField HeaderText="رشته 1" NullDisplayText="---"></asp:BoundField>
                        <asp:BoundField HeaderText="رشته 2" NullDisplayText="---"></asp:BoundField>
                        <asp:BoundField HeaderText="مدرک تحصیلی" NullDisplayText="---"></asp:BoundField>
                        <asp:BoundField HeaderText="تاریخ فراغت از تحصیل" NullDisplayText="---"></asp:BoundField>
                        <asp:BoundField HeaderText="سابقه کار" NullDisplayText="---"></asp:BoundField>
                        <asp:BoundField HeaderText="استان" NullDisplayText="---"></asp:BoundField>
                        <asp:BoundField DataField="UserId" HeaderText=""></asp:BoundField>
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" Width="200%" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#CCCCFF" ForeColor="#333333" Width="200%" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                </asp:GridView>
            </asp:Panel>
        </div>
    </div>
    <input id="Button1" type="button" onclick="CallPrint('printdiv')" style="font-family: Tahoma;"
        value="پرینت" />
    <asp:Button ID="ExportToExcel0" runat="server" Text="ذخیره در فایل Excel" Font-Names="Tahoma"
        Height="25px" OnClick="ExportToExcel_Click" Width="150px" />
    <%--      </ContentTemplate></uc1:holder1>--%>
</asp:Content>
